package com.newtouch.cq.security.config.detail;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

@SuppressWarnings("serial")
@Configuration
class CustomAuthenticationDetailsConfiguration implements Serializable {

	@Bean
	@ConditionalOnMissingBean
	public CustomAuthenticationDetailsSource authenticationDetailsSource() {
		return new CustomAuthenticationDetailsSource();
	}

}
